{% extends "base/home.html"%}
{% load staticfiles %}
{% block announcement %}

<ul class="nav nav-sidebar" >
  <li class="active">
    <a href="/news">
    {% if counts %}
      <span class="badge pull-right">{{ counts }}</span>
      新闻
      {% else %}
      <span class="badge pull-right">0</span>
      新闻
    {% endif  %}
    </a>
  </li>
  {% if announcements %}
  	{%  for announcement in announcements %}
  		<li>
  			<a href="news/{{ announcement.id }}">{{announcement.title}} <span class="label label-default sm">{{ announcement.publish_time }}</span></a>
  		</li>
  	{% endfor %}
  {% endif %}
</ul>

{%	endblock %}
